<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected $table = 'categorys';
    //可以被批量赋值的属性.
    protected $fillable = ['category_name','status','sort'];

    public function archives(){
    	return $this->hasMany('App\Archive');
    }
}
